#! /bin/bash
## author:XueXianqi

echo `date '+%Y-%m-%d %H:%M:%S'` '正在为您配置vim'
sudo apt-get install vim -y
sudo apt-get remove nano -y
sudo touch ~/.vimrc
echo "
syntax on
set number
set cursorline
set ruler
set tabstop=4
set autoindent 
set showcmd
set incsearch
set hlsearch
" >> ~/.vimrc
source ~/.vimrc
echo `date '+%Y-%m-%d %H:%M:%S'` 'vim配置完成'